package tham.com.arcadiocarballares {
	import mx.controls.Button;

	public class Day extends Button {
		public var dayData:DayData;
		
		public function Day() {
			super();
			this.setStyle('textAlign','center');
			this.setStyle('paddingTop',0);
			this.setStyle('paddingBottom',0);
			this.setStyle('paddingLeft',0);
			this.setStyle('paddingRight',0);
			this.percentWidth=100;
			this.percentHeight=100;
			this.toggle=true;
		}
		
		public function setToday():void {
			//this.setStyle('fillColors',['#993300', '#ff0000', '#993300', '#ff0000']);
			this.setStyle('fillColors',['#FFFFFF', '#0000FF', '#FFFFFF', '#0000FF']);
			this.setStyle('color','white');
		}
		
		public function setEvent(event:DayData):void {
			this.setStyle('fillColors',['#FFFFFF', '#0000FF', '#FFFFFF', '#0000FF']);
			this.setStyle('color','white');
			
			this.dayData=event;
			this.toolTip=dayData.eventTitle;
		}
		
	}
}